package com.example.forjava.entity;

import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Data
public class User {

    private String name;
    private String sex;
    private int age;

    private BigDecimal amount;
    private List<String> lists = new ArrayList<>();

    public BigDecimal getAmount() {
        return amount.multiply(new BigDecimal("1000"));
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
